package com.wonders;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

@WebFilter(value = "/HelloServlet")
public class HelloFilter implements Filter {
    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("before");
        chain.doFilter(req, resp);
        System.out.println("after");
    }
}
